﻿using UnityEngine;
using System.Collections;
using System.Collections.Generic;

namespace Mga
{
	public class UIType {

        public string Path { get; private set; }

        public string Name { get; private set; }

        public UIType(string path)
        {
            Path = path;
            Name = path.Substring(path.LastIndexOf('/') + 1);
        }

        public override string ToString()
        {
            return string.Format("path : {0} name : {1}", Path, Name);
        }

		public static readonly UIType GamePanel = new UIType("View/Module/UIGamePanel");
		public static readonly UIType MenuPanel = new UIType("View/Module/UIMenuPanel");
		public static readonly UIType CustomPanel = new UIType("View/Module/UICustomPanel");
    }
}
